package com.kgc.service.Impl;

import com.kgc.dao.mapper.MessageMapper;
import com.kgc.entity.Message;
import com.kgc.service.interf.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageServiceImpl implements MessageService {
    @Autowired
    private MessageMapper messageMapper;
    @Override
    public int addMessage(Message message) {
        return messageMapper.addMessage(message);
    }

    @Override
    public List<Message> queryMessage() {
        return messageMapper.queryMessage();
    }

    @Override
    public int deleteMessage(Integer messageId) {
        return messageMapper.deleteMessage(messageId);
    }
}
